Lesson: 22 - Virtual Classroom (AI)

Purpose : Students should learn how to create an AI-based Virtual Classroom in Scratch, using programming concepts such as Motion, Looks, Events, Variables, Operators, and Custom Events. They will also develop their creativity and coding skills by designing interactive virtual classroom experiences.

Materials Required

Computer / Laptop, Internet connection

Prior knowledge

Good knowledge about Sprites, Backdrops, Costumes, Variables, Operators, Conditional statements and Loops, events, sensing etc.. in scratch.

Exercises

Exercise:1



  1. How to create a virtual classroom using text commands in the Scratch GUI, train the AI model, and develop the program.

Solutions



  • Click here to view the exercise 1 solution.


  • Teacher's Instruction
    1. Introduce the Virtual Classroom (AI) project to the students.
    2. Explain how to create a virtual classroom using sprites and backdrops in the Scratch GUI.
    3. Demonstrate how text commands can be used to control objects in the classroom.
    4. Guide students to collect and train text commands such as “Fan On” and “Fan Off.”
    5. Explain how to connect the trained AI model with the Scratch program.
    6. Demonstrate how to use programming blocks to change the Fan sprite based on the user's command.
    7. Encourage students to add more classroom objects and create their own text commands.
    8. Ask students to test the program and check whether the correct sprite changes for each command.